<extend name="Public:base" />
<block name="left">
    <ul class=" ">
             <li><a href="{:U('Person/auth')}">           实名认证</a></li>
        <li><a href="{:U('Person/set_pwdtrade')}">   交易密码设置</a></li>
        <li><a href="{:U('Person/updatepwd')}">      修改登录密码</a></li>
        <li><a href="{:U('Person/change_pwdtrade')}">修改交易密码</a></li>
        <li><a href="{:U('Person/forgot_pwdtrade')}">找回交易密码</a></li>
     
        <li><a href="{:U('Person/mail_check')}">邮箱验证</a></li>
      <!--   <li><a href="">邮件通知</a></li>
         <li><a href="">设置双重验证</a></li>
        <li><a href="">手机绑定</a></li>
      -->    </ul>
</block>
<block name="right">
    <div class="ziliao">
           <div class="top-tip margin-top-20 clearfloat">
                温馨提示：你好，您正在找回交易密码 ！
        </div>
         <br>


         <form novalidate="novalidate" id="form" name="form" method="post" action="__CONTROLLER__/updatepwd">
            <div class="col-xs-10">
                <label class="label-name">原密码: &nbsp&nbsp</label>
                <input type="password"  class="ziliaobucz"  name="pwdOld"  id="pwdOld">
            </div>
            <br>

    

            <div class="col-xs-10">
                <label class="label-name">注册邮箱: &nbsp </label>
                <input type="password" class="ziliaobucz" name="pwd2"  id="pwdtrade_cfm">
            </div>
            <br>
            <div>
                <input type="submit" class="ziliaobu" name="submit" value="提交审核"> &nbsp &nbsp  
           <!--  <input class="ziliaobu" type="reset" name="reset" value="重 置">  -->
            </div>

        </form> 
                </div>
            </div>
            <!--<div class="myspace-list">
    <a class="myspace-plan " href="http://www.sucaihuo.com/Member/info.html">
        <span>主页</span>
    </a>
     <a class="myspace-note planactive" href="http://www.sucaihuo.com/Member/set.html">
        <span>设置</span>
    </a>
    <a class="myspace-course " href="http://www.sucaihuo.com/Member/comments.html">
        <span>评论</span>
    </a>

    <a class="myspace-ques " href="">
        <span>问答</span>
    </a>
    
    <a class="myspace-code " href="">
        <span>代码</span>
    </a>
</div>-->
        </div>
    </div>
    <script src="__PUBLIC__/style/hm.js"></script>
    <script src="__PUBLIC__/style/jquery_highlight.js" type="text/javascript"></script>
    <script src="__PUBLIC__/style/member.js" type="text/javascript"></script>
    <div class="mmsg-box mmsg-box-info" id="msg-box" style="margin-top: -23.5px; margin-left: -96.5px;">
        <div class="mmsg-content">
            <i class="mmsg-icon"></i>
            <p id="msg-box-content"></p>
        </div>
        <div class="mmsg-background"></div>
    </div>
    <script src="__PUBLIC__/style/validate.js"></script>
    <script type="text/javascript">
    $(function() {
        $("#form").validate({
            errorPlacement: function(error, element) {
                var error_td = element.parent('.rlf-group');
                error_td.find(".rlf-tip-wrap").html(error).show();
                //                error_td.find('p.focusTips').remove();
            },
            rules: {
                pwdOld: {
                    required: true,
                    remote: {
                        url: "__CONTROLLER__/oldpwd",
                        type: 'post',
                        data: {
                            pwdOld: function() {
                                return $('#pwdOld').val();
                            }
                        }
                    }
                },
                pwd: {
                    required: true,
                    minlength: 6,
                    maxlength: 20
                },
                pwd2: {
                    required: true,
                    equalTo: '#pwd'
                }
            },
            messages: {
                pwdOld: {
                    required: '请输入原密码！',
                    remote: '原密码不正确！'
                },
                pwd: {
                    required: '密码不能为空',
                    minlength: '密码长度应在6-20个字符之间',
                    maxlength: '密码长度应在6-20个字符之间'
                },
                pwd2: {
                    required: '请再次输入您的密码',
                    equalTo: '两次输入的密码不一致'
                }

            }
        });
    });
    </script>
</block>